exports.init = function (app) {
  // 创建缴费单位
  app.post('/net/socialadmin/social-company/create', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 更新缴费单位
  app.post('/net/socialadmin/social-company/update', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 缴费单位详情
  app.get('/net/socialadmin/social-company/get', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": {
        "id": 2,
        "name": "我们有限公司",
        "code": "123456789111",
        "merchantId": 1,
        "socialId": 1,
        "subAccount": "aa123456234",
        "created": 1513667710,
        "modified": 1513668149,
        "deleted": 0
      }
    });
  });

  // 删除缴费单位
  app.post('/net/socialadmin/social-company/del', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok"
    });
  });

  // 缴费单位列表
  app.post('/net/socialadmin/social-company/find', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [
          {
              "id": 2,
              "name": "我们有限公司",
              "code": "123456789111",
              "merchantId": 1,
              "socialId": 1,
              "subAccount": "aa123456234",
              "created": 1513667710,
              "modified": 1513668149,
              "deleted": 0
          },
          {
              "id": 1,
              "name": "常德市鼎城区华音电子厂",
              "code": "400310000069",
              "merchantId": 0,
              "socialId": 1,
              "subAccount": "11121212",
              "created": 0,
              "modified": 0,
              "deleted": 0
          }
      ],
      "page": {
          "currentPage": 1,
          "currentCount": 20,
          "totalCount": 2,
          "totalPage": 1
      }
    });
  });

  // 缴费记录列表
  app.post('/net/socialadmin/social_order/get-list', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [
          {
              "id": 15,
              "orderNo": "021200002017121911202170701",
              "totalPrice": 1,
              "shouldPay": 1,
              "orderStatus": 3,
              "payTime": 1513653621,
              "socialCompanyId": 1,
              "socialCompanyName": "常德市鼎城区华音电子厂",
              "socialCompanyCode": "400310000069",
              "socialPaymentSkuName": "2017年1月社保费",
              "factorage": "0.00000000"
          },{
            "id": 14,
            "orderNo": "021200002017121911202170701",
            "totalPrice": 1,
            "shouldPay": 1,
            "orderStatus": 3,
            "payTime": 1513653621,
            "socialCompanyId": 1,
            "socialCompanyName": "常德市鼎城区华音电子厂",
            "socialCompanyCode": "400310000069",
            "socialPaymentSkuName": "2017年1月社保费",
            "factorage": "0.00000000"
        }
      ],
      "page": {
          "currentPage": 1,
          "currentCount": 10,
          "totalCount": 1,
          "totalPage": 1
      }
    });
  });

  // 对账列表
  app.post('/net/socialadmin/social_statement/get-list', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": [
          {
              "socialCompanyId": 1,
              "socialCompanyName": "常德市鼎城区华音电子厂",
              "payNum": "4",
              "payAmount": "7.99700000",
              "factorage": "0.00300000",
              "totalPayAmount": "8"
          },
          {
              "socialCompanyId": 2,
              "socialCompanyName": "我们有限公司",
              "payNum": "2",
              "payAmount": "4.00000000",
              "factorage": "0.00000000",
              "totalPayAmount": "4"
          }
      ],
      "page": {
          "currentPage": 1,
          "currentCount": 10,
          "totalCount": 2,
          "totalPage": 1
      }
    });
  });

  // 统计对账信息
  app.post('/net/socialadmin/social_statement/count-by-social-statement', function (req, res) {
    res.send({
      "errcode": "0",
      "errmsg": "ok",
      "data": {
          "payNum": 0,
          "payAmount": 0,
          "factorage": 0
      }
    });
  });

}